package com.zzy.j1114iocdemo.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/repo")
@RestController
public class PropertiesController {

    @Value("${zzy.key1}")
    private String key1;

    @RequestMapping("/readValue")
    public String readValue(){
        return "返回的就是我们的这个key1的大小"+key1;
    }
}
